import request from '@/utils/request'

export function pageDataApiExamine(data) {
  return request({
    url: '/system/dataExamine/pageExamine',
    method: 'get',
    params: data,
  })
}

export function pageDataApiExamineHis(data) {
  return request({
    url: '/system/dataExamine/pageExamine',
    method: 'get',
    params: data,
  })
}

export function pageDataApiApply(data) {
  return request({
    url: '/system/dataExamine/pageApply',
    method: 'get',
    params: data,
  })
}

export function revokeDataApi(id) {
  return request({
    url: '/system/dataExamine/revoke/' + id,
    method: 'get',
  })
}

export function examineDataApi(id, state, type) {
  return request({
    url: '/system/dataExamine/examine',
    method: 'post',
    data: {
      id,
      state,
      type,
    },
  })
}
